require.config({
    baseUrl: "./modules",
    paths: {
        jq: "../libs/jquery.2.2.4"
    }
})
require(["jq", "getGoods", "RedrProduct"], function (_, getGoods, RedrProduct) {
    const url = "http://localhost:3000/api?type=getGoods";
    const id = location.search.split("=")[1];
    getGoods(res => {
        let i = 0;
        res.some((val, idx) => {
            i = idx;
            return val.proId === id
        })
        // 根据数据渲染到指定页面
        RedrProduct(res[i])
    })
})